home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4306 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.lang.c
  2. Path: in1.uu.net!world!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: void main() and other atrocities!
  5. Message-ID: <DM66ps.GIH@mv.mv.com>
  6. Mime-Version: 1.0
  7. Organization: GSSI
  8. Date: Fri, 2 Feb 1996 22:34:40 GMT
  9. References: <4eduaj$1aq@grouper.Exis.Net> <4em17r$shq@jaxnet.jaxnet.com> <4emub9$1mo@fountain.mindlink.net> <4epplj$egf@host-3.cyberhighway.net> <4erjn2INN38b@keats.ugrad.cs.ubc.ca>
  10. X-Newsreader: WinVN 0.93.10
  11. X-Nntp-Posting-Host: gssi.mv.com
  12.  
  13. In article <4erjn2INN38b@keats.ugrad.cs.ubc.ca>, c2a192@ugrad.cs.ubc.ca 
  14. says...
  15. > ........... snip .........
  16. >There is nothing with 'void main()'. It's not giverned by the ANSI standard,
  17. >first of all, because that is not an ANSI definition. An ANSI definiton 
  18. would
  19. >be more like 'void main(void)'.
  20. >
  21. >You don't need main() to be defined has having any sort of return value 
  22. unless
  23. >you plan to "return" out of it. If you use exit(0) like me, declaring the
  24. >function void is ok, since your function never returns.
  25.  
  26. That is not exactly true. Just some compilers allow "void main(..)" as a 
  27. language extension. But of cause it is not garanteed for any compiler. 
  28.  
  29. >
  30. >The antsy standard is _great_ for assuring me that my bike helmet is safe, 
  31. mind
  32. >you.
  33. >-- 
  34. >
  35.  
  36. -- 
  37. <<<<<<<< This is a copy of post to the newsgroup >>>>>>>>
  38. ---------------------------------------------------------------
  39. Michael Furman,                       (603)893-1109
  40. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  41. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  42. North Salem, NH 03073-0097            71543.1334@compuserve.com
  43. ---------------------------------------------------------------
  44.  
  45.